package com.limit.Controller;

import com.limit.service.SignInService;
import com.limit.util.UserUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @title: SignInController
 * @Author xu-xiang
 * @Date: 2024-4-7 14:35:27
 * @description: 签到统计
 */
@RestController
@RequestMapping("/sign")
public class SignInController {

    @Resource
    private SignInService signInService;

    @RequestMapping("/count")
    public Object getCount() {
        return signInService.getSignInCount(UserUtil.getCurrentUserId());
    }

}
